//
//  AirplaneCell.swift
//  ImGuider X
//
//  Created by 王鹏宇 on 9/28/18.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class AirplaneCell: UITableViewCell {

    @IBOutlet weak var cityNameLabel: UILabel!
    @IBOutlet weak var flightLabel: UILabel!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        self.contentView.backgroundColor = kThemeBgColor
        self.selectionStyle = .none
    }

    func configData(model : AirplaneDetailModel?){
        
        
        self.cityNameLabel.text = (model?.departureCity ?? "") + " - " + (model?.arrivalCity ?? "") 
        
        self.flightLabel.text = (model?.departureAirportObj?.iata_code ?? "") + " - " + (model?.arrivalAirportObj?.iata_code ?? "")
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
